package com.home.jinlanhua.constant;

/**
 * @author Think
 */

public enum AllCode {
    SUCCESS(true, 1, "正确"),
    FAIL(false, 0, "错误"),
    PASSWORD_ERROR(false,0,"用户密码错误，请重新输入"),
    USER_NOTEXIT(false,0,"用户不存在");

    Boolean success;
    Integer code;
    String message;

    AllCode() {

    }

    AllCode(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "ShopCode{" +
                "success=" + success +
                ", code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
